package rodrigosetti.colorstrike.core;

import javax.microedition.lcdui.Graphics;

import rodrigosetti.midpgame.Estado;
import rodrigosetti.midpgame.Loading;
import rodrigosetti.midpgame.GameCore;

public class ColorStrikeLoading extends Loading {

	public void desenhar(Graphics g) {
		// limpa tela:
		g.setColor(0xFFFFFF);
		g.fillRect(0, 0, GameCore.widthScreen, GameCore.heightScreen);

		/* Desenha */
		g.setColor(0xFF0000);
		g.fillRect(GameCore.widthScreen/4, GameCore.centerY+22, (int)((float)GameCore.centerX*(float)incrementos/(float)incrementosMax), 22);
		g.setColor(0x000000);
		g.drawString("Loading...", GameCore.widthScreen/4, GameCore.centerY,
				0);
		g.drawRect(GameCore.widthScreen/4, GameCore.centerY+22, GameCore.centerX, 22);
		
		
	}

	public void inicializar() {

	}

	public void liberarRecursos() {

	}

	public Estado getPai() {
		return null;
	}

}
